#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable : 4996)
#pragma warning(disable : 6031)

#include <stdio.h>

int main() {
    double t = 0;
    while (scanf("%lf", &t) == 1)
    {
        getchar();
        if (t < 0)
            printf("0\n");
        else if (0 == t)
            printf("0.5\n");
        else if(t > 0)
            printf("1\n");
    }
    return 0;
}